<?php
    include("functions.php");
    global $dirroot,$dirzad;

    $stats=array(array("1","4"));
    $main=opendir($dirzad);
    while($dir=readdir($main))
    {
	if(is_dir($dir) && $dir[0]!='.')
	{
	    $zad=opendir($dirzad.$dir);
	    
	    closedir($zad);
	}
    }
    closedir($main);
    
    foreach($stats as $i => $v)
    {
	print("[$i] = $v<br>\n");
	if(is_array($v))
	{
	    print("{<br>");
	    foreach($v as $ii => $vv)
	    {
		print("&nbsp;&nbsp;[$ii] = $vv<br>\n");    
	    }
	    print("}<br>");
	}
    }

?>